import httpRequest from '@/http/request'

export function apiGetUser(current: number) {
    return httpRequest({
        url: `/web/user/getUser/${current}/6`,
        method: 'post',
        data: {}
    })
}

export function apiGetExpert(current: number) {
    return httpRequest({
        url: `/web/user/getExpert/${current}/6`,
        method: 'post',
        data: {}
    })
}

export function apiGetManager(current: number) {
    return httpRequest({
        url: `/web/user/getManager/${current}/6`,
        method: 'post',
        data: {}
    })
}

export function apiAddManager(status: number, row: any) {
    return httpRequest({
        url: `/web/user/addManager/${status}`,
        method: 'post',
        data: row
    })
}

export function apiDeleteManager(userId: number) {
    return httpRequest({
        url: `/web/user/deleteManager/${userId}`,
        method: 'get'
    })
}